<!DOCTYPE html>
<html lang="zh-CN">
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width,initial-scale=1">
    <title>crud配置项 | d2-crud-plus</title>
    <meta name="generator" content="VuePress 1.5.2">
    <link rel="icon" href="/d2-crud-plus/icon-only.png">
    <link rel="manifest" href="/d2-crud-plus/manifest.json">
    <link rel="apple-touch-icon" href="/d2-crud-plus/icons/apple-touch-icon-152x152.png">
    <link rel="mask-icon" href="/d2-crud-plus/icons/safari-pinned-tab.svg" color="#3eaf7c">
    <meta name="description" content="d2-crud-plus doc">
    <meta name="theme-color" content="#3eaf7c">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="msapplication-TileImage" content="/icons/msapplication-icon-144x144.png">
    <meta name="msapplication-TileColor" content="#000000">
    <link rel="preload" href="/d2-crud-plus/assets/css/0.styles.094573b2.css" as="style"><link rel="preload" href="/d2-crud-plus/assets/js/app.9c9ff646.js" as="script"><link rel="preload" href="/d2-crud-plus/assets/js/2.9f3ba775.js" as="script"><link rel="preload" href="/d2-crud-plus/assets/js/62.8e56567e.js" as="script"><link rel="prefetch" href="/d2-crud-plus/assets/js/10.768312da.js"><link rel="prefetch" href="/d2-crud-plus/assets/js/11.88f0302a.js"><link rel="prefetch" href="/d2-crud-plus/assets/js/12.0a517745.js"><link rel="prefetch" href="/d2-crud-plus/assets/js/13.a305030c.js"><link rel="prefetch" href="/d2-crud-plus/assets/js/14.d7129909.js"><link rel="prefetch" href="/d2-crud-plus/assets/js/15.155c94d2.js"><link rel="prefetch" href="/d2-crud-plus/assets/js/16.26c6c56e.js"><link rel="prefetch" href="/d2-crud-plus/assets/js/17.e99a2516.js"><link rel="prefetch" href="/d2-crud-plus/assets/js/18.4070aced.js"><link rel="prefetch" href="/d2-crud-plus/assets/js/19.2973f5fd.js"><link rel="prefetch" href="/d2-crud-plus/assets/js/20.98a470da.js"><link rel="prefetch" href="/d2-crud-plus/assets/js/21.4a9a425c.js"><link rel="prefetch" href="/d2-crud-plus/assets/js/22.e3df0266.js"><link rel="prefetch" href="/d2-crud-plus/assets/js/23.c3b1f111.js"><link rel="prefetch" href="/d2-crud-plus/assets/js/24.06580ff4.js"><link rel="prefetch" href="/d2-crud-plus/assets/js/25.90694896.js"><link rel="prefetch" href="/d2-crud-plus/assets/js/26.aa14de9a.js"><link rel="prefetch" href="/d2-crud-plus/assets/js/27.fae09a5a.js"><link rel="prefetch" href="/d2-crud-plus/assets/js/28.5e7a8b41.js"><link rel="prefetch" href="/d2-crud-plus/assets/js/29.01177fca.js"><link rel="prefetch" href="/d2-crud-plus/assets/js/3.b899e7a1.js"><link rel="prefetch" href="/d2-crud-plus/assets/js/30.50b37a03.js"><link rel="prefetch" href="/d2-crud-plus/assets/js/31.12c9c609.js"><link rel="prefetch" href="/d2-crud-plus/assets/js/32.003f7e14.js"><link rel="prefetch" href="/d2-crud-plus/assets/js/33.32ac431f.js"><link rel="prefetch" href="/d2-crud-plus/assets/js/34.2ba18ffa.js"><link rel="prefetch" href="/d2-crud-plus/assets/js/35.cf663eb5.js"><link rel="prefetch" href="/d2-crud-plus/assets/js/36.2cb165db.js"><link rel="prefetch" href="/d2-crud-plus/assets/js/37.5f369dc4.js"><link rel="prefetch" href="/d2-crud-plus/assets/js/38.c40206e6.js"><link rel="prefetch" href="/d2-crud-plus/assets/js/39.b4045a79.js"><link rel="prefetch" href="/d2-crud-plus/assets/js/4.6d40d8fb.js"><link rel="prefetch" href="/d2-crud-plus/assets/js/40.819f2369.js"><link rel="prefetch" href="/d2-crud-plus/assets/js/41.443d0cf0.js"><link rel="prefetch" href="/d2-crud-plus/assets/js/42.7a8402af.js"><link rel="prefetch" href="/d2-crud-plus/assets/js/43.9d74c7d1.js"><link rel="prefetch" href="/d2-crud-plus/assets/js/44.9bac8686.js"><link rel="prefetch" href="/d2-crud-plus/assets/js/45.ffdb2000.js"><link rel="prefetch" href="/d2-crud-plus/assets/js/46.01feec93.js"><link rel="prefetch" href="/d2-crud-plus/assets/js/47.fd9aabfc.js"><link rel="prefetch" href="/d2-crud-plus/assets/js/48.6c73355e.js"><link rel="prefetch" href="/d2-crud-plus/assets/js/49.f6fd43e8.js"><link rel="prefetch" href="/d2-crud-plus/assets/js/5.8571b144.js"><link rel="prefetch" href="/d2-crud-plus/assets/js/50.c5de948a.js"><link rel="prefetch" href="/d2-crud-plus/assets/js/51.002c2494.js"><link rel="prefetch" href="/d2-crud-plus/assets/js/52.a6e0e1fe.js"><link rel="prefetch" href="/d2-crud-plus/assets/js/53.5555efff.js"><link rel="prefetch" href="/d2-crud-plus/assets/js/54.434a586a.js"><link rel="prefetch" href="/d2-crud-plus/assets/js/55.3d1d5e49.js"><link rel="prefetch" href="/d2-crud-plus/assets/js/56.8396c799.js"><link rel="prefetch" href="/d2-crud-plus/assets/js/57.346fc7e0.js"><link rel="prefetch" href="/d2-crud-plus/assets/js/58.6cb05cfb.js"><link rel="prefetch" href="/d2-crud-plus/assets/js/59.066b3e6d.js"><link rel="prefetch" href="/d2-crud-plus/assets/js/6.8660d829.js"><link rel="prefetch" href="/d2-crud-plus/assets/js/60.090af84b.js"><link rel="prefetch" href="/d2-crud-plus/assets/js/61.be1e3ade.js"><link rel="prefetch" href="/d2-crud-plus/assets/js/63.1ba8b586.js"><link rel="prefetch" href="/d2-crud-plus/assets/js/64.53572d02.js"><link rel="prefetch" href="/d2-crud-plus/assets/js/65.8d5fd2db.js"><link rel="prefetch" href="/d2-crud-plus/assets/js/66.b3a44945.js"><link rel="prefetch" href="/d2-crud-plus/assets/js/67.70d9fe09.js"><link rel="prefetch" href="/d2-crud-plus/assets/js/68.9bd08d8c.js"><link rel="prefetch" href="/d2-crud-plus/assets/js/69.e18290df.js"><link rel="prefetch" href="/d2-crud-plus/assets/js/7.d8550247.js"><link rel="prefetch" href="/d2-crud-plus/assets/js/70.a8143954.js"><link rel="prefetch" href="/d2-crud-plus/assets/js/71.aa8ba6ae.js"><link rel="prefetch" href="/d2-crud-plus/assets/js/8.b8c6f50a.js"><link rel="prefetch" href="/d2-crud-plus/assets/js/9.bb5c3b5b.js">
    <link rel="stylesheet" href="/d2-crud-plus/assets/css/0.styles.094573b2.css">
  </head>
  <body>
    <div id="app" data-server-rendered="true"><div class="theme-container"><header class="navbar"><div class="sidebar-button"><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" role="img" viewBox="0 0 448 512" class="icon"><path fill="currentColor" d="M436 124H12c-6.627 0-12-5.373-12-12V80c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12z"></path></svg></div> <a href="/d2-crud-plus/" class="home-link router-link-active"><!----> <span class="site-name">d2-crud-plus</span></a> <div class="links"><div class="search-box"><input aria-label="Search" autocomplete="off" spellcheck="false" value=""> <!----></div> <nav class="nav-links can-hide"><div class="nav-item"><a href="/d2-crud-plus/guide/" class="nav-link router-link-active">
  指南
</a></div><div class="nav-item"><a href="http://qiniu.veryreader.com/D2CrudPlusExample/index.html" target="_blank" rel="noopener noreferrer" class="nav-link external">
  演示
  <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></div> <a href="https://github.com/greper/d2-crud-plus" target="_blank" rel="noopener noreferrer" class="repo-link">
    GitHub
    <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></nav></div></header> <div class="sidebar-mask"></div> <aside class="sidebar"><nav class="nav-links"><div class="nav-item"><a href="/d2-crud-plus/guide/" class="nav-link router-link-active">
  指南
</a></div><div class="nav-item"><a href="http://qiniu.veryreader.com/D2CrudPlusExample/index.html" target="_blank" rel="noopener noreferrer" class="nav-link external">
  演示
  <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></div> <a href="https://github.com/greper/d2-crud-plus" target="_blank" rel="noopener noreferrer" class="repo-link">
    GitHub
    <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></nav>  <ul class="sidebar-links"><li><section class="sidebar-group depth-0"><p class="sidebar-heading"><span>指南</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/d2-crud-plus/guide/" class="sidebar-link">介绍</a></li><li><a href="/d2-crud-plus/guide/quickstart.html" class="sidebar-link">快速上手</a></li></ul></section></li><li><section class="sidebar-group depth-0"><p class="sidebar-heading open"><span>进阶</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/d2-crud-plus/guide/mixins.html" class="sidebar-link">d2CrudPlus.crud</a></li><li><a href="/d2-crud-plus/guide/options.html" class="active sidebar-link">crud配置项</a><ul class="sidebar-sub-headers"><li class="sidebar-sub-header"><a href="/d2-crud-plus/guide/options.html#最简配置" class="sidebar-link">最简配置</a></li><li class="sidebar-sub-header"><a href="/d2-crud-plus/guide/options.html#最全配置" class="sidebar-link">最全配置</a></li></ul></li><li><a href="/d2-crud-plus/guide/structure.html" class="sidebar-link">数据结构</a></li><li><a href="/d2-crud-plus/guide/component.html" class="sidebar-link">组件配置</a></li><li><a href="/d2-crud-plus/guide/column-type.html" class="sidebar-link">字段类型</a></li><li><a href="/d2-crud-plus/guide/types.html" class="sidebar-link">字段类型列表</a></li><li><a href="/d2-crud-plus/guide/slot.html" class="sidebar-link">slot自定义</a></li><li><a href="/d2-crud-plus/guide/extends.html" class="sidebar-link">自定义扩展</a></li><li><a href="/d2-crud-plus/guide/dict.html" class="sidebar-link">数据字典</a></li><li><a href="/d2-crud-plus/guide/event.html" class="sidebar-link">事件监听</a></li><li><a href="/d2-crud-plus/guide/flat-data.html" class="sidebar-link">数据扁平化</a></li></ul></section></li><li><section class="sidebar-group depth-0"><p class="sidebar-heading"><span>附加功能</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/d2-crud-plus/guide/permission.html" class="sidebar-link">权限管理</a></li><li><a href="/d2-crud-plus/guide/generate.html" class="sidebar-link">代码生成</a></li></ul></section></li><li><section class="sidebar-group depth-0"><p class="sidebar-heading"><span>更多帮助</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/d2-crud-plus/guide/upgrade.html" class="sidebar-link">版本升级</a></li><li><a href="/d2-crud-plus/guide/breakingchange.html" class="sidebar-link">版本变更说明</a></li><li><a href="/d2-crud-plus/guide/questions.html" class="sidebar-link">常见问题</a></li><li><a href="/d2-crud-plus/guide/contact.html" class="sidebar-link">联系作者</a></li></ul></section></li><li><section class="sidebar-group depth-0"><p class="sidebar-heading"><span>extends文档</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/d2-crud-plus/guide/extends/area-selector.html" class="sidebar-link">省市区选择组件</a></li><li><a href="/d2-crud-plus/guide/extends/avatar-cropper.html" class="sidebar-link">头像裁剪上传</a></li><li><a href="/d2-crud-plus/guide/extends/file-uploader.html" class="sidebar-link">文件上传组件</a></li><li><a href="/d2-crud-plus/guide/extends/full-editor.html" class="sidebar-link">富文本</a></li><li><a href="/d2-crud-plus/guide/extends/icon-selector.html" class="sidebar-link">icon选择组件</a></li><li><a href="/d2-crud-plus/guide/extends/tree-selector.html" class="sidebar-link">树形选择组件</a></li><li><a href="/d2-crud-plus/guide/extends/uploader.html" class="sidebar-link">文件上传lib</a></li></ul></section></li><li><section class="sidebar-group collapsable depth-0"><p class="sidebar-heading"><span>组件文档</span> <span class="arrow right"></span></p> <!----></section></li><li><section class="sidebar-group collapsable depth-0"><p class="sidebar-heading"><span>ChangeLog</span> <span class="arrow right"></span></p> <!----></section></li></ul> </aside> <main class="page"> <div class="theme-default-content content__default"><h1 id="crud配置项"><a href="#crud配置项" class="header-anchor">#</a> crud配置项</h1> <h2 id="最简配置"><a href="#最简配置" class="header-anchor">#</a> 最简配置</h2> <div class="language-javascript extra-class"><pre class="language-javascript"><code><span class="token keyword">export</span> <span class="token keyword">const</span> crudOptions <span class="token operator">=</span> <span class="token punctuation">{</span>
  columns<span class="token punctuation">:</span> <span class="token punctuation">[</span> <span class="token comment">//字段配置</span>
    <span class="token punctuation">{</span>
      title<span class="token punctuation">:</span> <span class="token string">'地区'</span><span class="token punctuation">,</span>  
      key<span class="token punctuation">:</span> <span class="token string">'province'</span><span class="token punctuation">,</span> 
      type<span class="token punctuation">:</span> <span class="token string">'select'</span><span class="token punctuation">,</span>
      dict<span class="token punctuation">:</span> <span class="token punctuation">{</span>url<span class="token punctuation">:</span><span class="token string">'/dict/getProvinceList'</span><span class="token punctuation">}</span>
    <span class="token punctuation">}</span>
  <span class="token punctuation">]</span>
<span class="token punctuation">}</span>
</code></pre></div><h2 id="最全配置"><a href="#最全配置" class="header-anchor">#</a> 最全配置</h2> <div class="language-javascript extra-class"><pre class="language-javascript"><code><span class="token keyword">export</span> <span class="token keyword">const</span> crudOptions <span class="token operator">=</span> <span class="token punctuation">{</span>
  columns<span class="token punctuation">:</span> <span class="token punctuation">[</span> <span class="token comment">//字段配置</span>
    <span class="token punctuation">{</span>
      title<span class="token punctuation">:</span> <span class="token string">'地区'</span><span class="token punctuation">,</span>  
      key<span class="token punctuation">:</span> <span class="token string">'province'</span><span class="token punctuation">,</span> 
      <span class="token comment">// -----下方的配置都是可选的------</span>
      type<span class="token punctuation">:</span> <span class="token string">'select'</span><span class="token punctuation">,</span> <span class="token comment">//字段类型，根据类型可生成该字段的默认配置，下方那么多配置基本可以不用写（没有定制化需求的话）</span>
      sortable<span class="token punctuation">:</span> <span class="token boolean">true</span><span class="token punctuation">,</span> <span class="token comment">//是否支持排序</span>
      search<span class="token punctuation">:</span> <span class="token punctuation">{</span>
        disabled<span class="token punctuation">:</span> <span class="token boolean">false</span><span class="token punctuation">,</span> <span class="token comment">//是否禁用该字段的查询，默认false</span>
        component<span class="token punctuation">:</span><span class="token punctuation">{</span> <span class="token comment">//查询框组件配置，默认根据form配置生成 </span>
           name<span class="token punctuation">:</span><span class="token string">'dict-select'</span> <span class="token comment">//支持任何v-model组件</span>
        <span class="token punctuation">}</span><span class="token punctuation">,</span>
        <span class="token comment">// 是否启用搜索框的slot插槽,需要d2-crud-x才支持</span>
        <span class="token comment">// 示例 http://qiniu.veryreader.com/D2CrudPlusExample/#/demo/form/slot</span>
        slot<span class="token punctuation">:</span><span class="token boolean">false</span> 
      <span class="token punctuation">}</span><span class="token punctuation">,</span>
      form<span class="token punctuation">:</span> <span class="token punctuation">{</span> <span class="token comment">//添加和编辑表单配置</span>
        rules<span class="token punctuation">:</span> <span class="token punctuation">[</span> <span class="token comment">// 表单校验规则</span>
          <span class="token punctuation">{</span> required<span class="token punctuation">:</span> <span class="token boolean">true</span><span class="token punctuation">,</span> message<span class="token punctuation">:</span> <span class="token string">'请选择地区'</span> <span class="token punctuation">}</span>
        <span class="token punctuation">]</span><span class="token punctuation">,</span>
        component<span class="token punctuation">:</span> <span class="token punctuation">{</span> <span class="token comment">//添加和修改时form表单的组件</span>
          title<span class="token punctuation">:</span><span class="token string">'表单字段显示的名称'</span><span class="token punctuation">,</span> <span class="token comment">//默认使用column的title</span>
          name<span class="token punctuation">:</span> <span class="token string">'dict-select'</span><span class="token punctuation">,</span> <span class="token comment">//表单组件名称，支持任何v-model组件</span>
          props<span class="token punctuation">:</span> <span class="token punctuation">{</span> <span class="token comment">//表单组件的参数，具体参数请查看对应的组件文档</span>
            <span class="token comment">// 如何查找组件配置，请参考</span>
            <span class="token comment">// http://greper.gitee.io/d2-crud-plus/guide/component.html</span>
            separator<span class="token punctuation">:</span><span class="token string">&quot;,&quot;</span><span class="token punctuation">,</span><span class="token comment">//dict-select的组件参数，[不同组件参数不同]</span>
            elProps<span class="token punctuation">:</span><span class="token punctuation">{</span> <span class="token comment">//dict-select内部封装了el-select</span>
              filterable<span class="token punctuation">:</span> <span class="token boolean">true</span><span class="token punctuation">,</span> <span class="token comment">//可过滤选择项</span>
              multiple<span class="token punctuation">:</span> <span class="token boolean">true</span><span class="token punctuation">,</span> <span class="token comment">//支持多选</span>
              clearable<span class="token punctuation">:</span> <span class="token boolean">true</span><span class="token punctuation">,</span> <span class="token comment">//可清除</span>
            <span class="token punctuation">}</span>
          <span class="token punctuation">}</span><span class="token punctuation">,</span>
          disabled<span class="token punctuation">:</span> <span class="token boolean">false</span><span class="token punctuation">,</span> <span class="token comment">//是否在表单中禁用组件</span>
          <span class="token comment">// disabled(context){return false}//还可以配置为方法</span>
          readonly<span class="token punctuation">:</span> <span class="token boolean">false</span><span class="token punctuation">,</span> <span class="token comment">//表单组件是否是只读</span>
          <span class="token comment">// readonly(context){return false} //还可以配置为方法</span>
          show<span class="token punctuation">:</span> <span class="token boolean">true</span><span class="token punctuation">,</span> <span class="token comment">//是否显示该字段，</span>
          <span class="token comment">// show(context){return false} //还可以配置为方法         </span>
          on<span class="token punctuation">:</span><span class="token punctuation">{</span> <span class="token comment">//除input change事件外，更多组件事件监听</span>
            <span class="token function">select</span><span class="token punctuation">(</span><span class="token parameter">event</span><span class="token punctuation">)</span><span class="token punctuation">{</span>console<span class="token punctuation">.</span><span class="token function">log</span><span class="token punctuation">(</span>event<span class="token punctuation">)</span><span class="token punctuation">}</span> <span class="token comment">//监听表单组件的select事件</span>
          <span class="token punctuation">}</span><span class="token punctuation">,</span>
          scopedSlots<span class="token punctuation">:</span><span class="token punctuation">{</span> <span class="token comment">//插槽渲染</span>
             <span class="token function-variable function">default</span><span class="token punctuation">:</span><span class="token punctuation">(</span><span class="token parameter">h<span class="token punctuation">,</span>scope</span><span class="token punctuation">)</span><span class="token operator">=&gt;</span><span class="token punctuation">{</span> <span class="token comment">//默认的scoped插槽</span>
                <span class="token keyword">return</span> <span class="token punctuation">(</span><span class="token operator">&lt;</span>div<span class="token operator">&gt;</span><span class="token punctuation">{</span>scope<span class="token punctuation">.</span>data<span class="token punctuation">}</span><span class="token operator">&lt;</span><span class="token operator">/</span>div<span class="token operator">&gt;</span><span class="token punctuation">)</span>
             <span class="token punctuation">}</span>
          <span class="token punctuation">}</span><span class="token punctuation">,</span>
          children<span class="token punctuation">:</span><span class="token punctuation">[</span> <span class="token comment">//子元素</span>
              <span class="token punctuation">(</span><span class="token parameter">h</span><span class="token punctuation">)</span><span class="token operator">=&gt;</span><span class="token punctuation">{</span><span class="token keyword">return</span> <span class="token punctuation">(</span><span class="token operator">&lt;</span>div slot<span class="token operator">=</span><span class="token string">&quot;prefix&quot;</span><span class="token operator">&gt;</span>非scoped插槽<span class="token operator">&lt;</span><span class="token operator">/</span>div<span class="token operator">&gt;</span><span class="token punctuation">)</span><span class="token punctuation">}</span>
          <span class="token punctuation">]</span><span class="token punctuation">,</span>
          span<span class="token punctuation">:</span> <span class="token number">12</span> <span class="token comment">//该字段占据多宽，24为占满一行</span>
        <span class="token punctuation">}</span><span class="token punctuation">,</span>
        disabled<span class="token punctuation">:</span><span class="token boolean">false</span><span class="token punctuation">,</span> <span class="token comment">//完全关闭该字段在表单中显示</span>
        addDisabled<span class="token punctuation">:</span> <span class="token boolean">false</span><span class="token punctuation">,</span> <span class="token comment">//是否仅在添加编辑框中关闭该字段</span>
        editDisabled<span class="token punctuation">:</span> <span class="token boolean">false</span><span class="token punctuation">,</span> <span class="token comment">//是否仅在修改编辑框中关闭该字段</span>
        <span class="token comment">/**
           * @param value 当前选择的值
           * @param form 当前表单
           * @param getColumn 获取字段配置的方法，getColumn(keyName) 返回keyName的字段配置，可以动态修改组件配置
           * @param mode 当前模式:【add、edit、search】
           * @param component 当前组件的ref
           * @param immediate 是否是对话框打开后立即触发的
           * @param getComponent 获取组件Ref的方法， getComponent(keyName), 返回组件ref，可以动态调用该组件的方法
        **/</span>
        <span class="token function">valueChange</span><span class="token punctuation">(</span><span class="token parameter">key <span class="token punctuation">,</span>value <span class="token punctuation">,</span>form<span class="token punctuation">,</span> <span class="token punctuation">{</span>getColumn<span class="token punctuation">,</span> mode<span class="token punctuation">,</span> component<span class="token punctuation">,</span> immediate<span class="token punctuation">,</span> getComponent <span class="token punctuation">}</span></span><span class="token punctuation">)</span><span class="token punctuation">{</span>
            <span class="token comment">// form表单数据change事件，表单值有改动将触发此事件</span>
        <span class="token punctuation">}</span><span class="token punctuation">,</span>
        valueChangeImmediate<span class="token punctuation">:</span><span class="token boolean">false</span><span class="token punctuation">,</span> <span class="token comment">//是否在打开对话框后触发一次valueChange事件</span>
        <span class="token comment">// 是否启用form编辑框的slot插槽,需要d2-crud-x才支持</span>
        <span class="token comment">// 示例 http://qiniu.veryreader.com/D2CrudPlusExample/#/demo/form/slot</span>
        slot<span class="token punctuation">:</span><span class="token boolean">false</span>
      <span class="token punctuation">}</span><span class="token punctuation">,</span>
      addForm<span class="token punctuation">:</span><span class="token punctuation">{</span>
         <span class="token comment">//添加对话框的特别配置，当添加和修改的配置有差异时，可以在此单独配置差异部分</span>
      <span class="token punctuation">}</span><span class="token punctuation">,</span>
      editForm<span class="token punctuation">:</span><span class="token punctuation">{</span>
         <span class="token comment">//修改对话框的特别配置，当添加和修改的配置有差异时，可以在此单独配置差异部分</span>
      <span class="token punctuation">}</span><span class="token punctuation">,</span>
      view<span class="token punctuation">:</span><span class="token punctuation">{</span><span class="token comment">// 查看按钮组件的单独配置</span>
        component<span class="token punctuation">:</span><span class="token punctuation">{</span><span class="token operator">...</span><span class="token punctuation">}</span> 
      <span class="token punctuation">}</span><span class="token punctuation">,</span> 
      <span class="token function">valueBuilder</span> <span class="token punctuation">(</span><span class="token parameter">row<span class="token punctuation">,</span>key</span><span class="token punctuation">)</span> <span class="token punctuation">{</span>
        <span class="token comment">// 某些组件传入的value值可能是一个复杂对象，而row中的单个属性的值不合适传入</span>
        <span class="token comment">// 则需要在打开编辑对话框前将row里面多个字段组合成组件需要的value对象</span>
        <span class="token comment">// 例如：国际手机号(mobileValue为此column的key) </span>
        <span class="token comment">// 示例 http://qiniu.veryreader.com/D2CrudPlusExample/#/demo/form/phone</span>
        <span class="token comment">// row.mobileValue = { phoneNumber: row.phone, callingCode: row.code, countryCode: row.country }</span>
      <span class="token punctuation">}</span><span class="token punctuation">,</span>
      <span class="token function">valueResolve</span> <span class="token punctuation">(</span><span class="token parameter">row<span class="token punctuation">,</span>key</span><span class="token punctuation">)</span> <span class="token punctuation">{</span> 
        <span class="token comment">// 组件中传回的值也需要分解成row中多个字段的值，用于提交给后台。</span>
        <span class="token comment">// if (row.mobileValue != null) {</span>
        <span class="token comment">//  row.phone = row.mobileValue.phoneNumber</span>
        <span class="token comment">//  row.code = row.mobileValue.callingCode</span>
        <span class="token comment">//  row.country = row.mobileValue.countryCode</span>
        <span class="token comment">// } </span>
      <span class="token punctuation">}</span><span class="token punctuation">,</span>
      dict<span class="token punctuation">:</span> <span class="token punctuation">{</span> <span class="token comment">// 数据字典配置， 供select等组件通过value匹配label</span>
        data<span class="token punctuation">:</span> <span class="token punctuation">[</span> <span class="token comment">// 本地数据字典</span>
          <span class="token punctuation">{</span> value<span class="token punctuation">:</span> <span class="token string">'sz'</span><span class="token punctuation">,</span> label<span class="token punctuation">:</span> <span class="token string">'深圳'</span> <span class="token punctuation">}</span><span class="token punctuation">,</span>
          <span class="token punctuation">{</span> value<span class="token punctuation">:</span> <span class="token string">'gz'</span><span class="token punctuation">,</span> label<span class="token punctuation">:</span> <span class="token string">'广州'</span> <span class="token punctuation">}</span><span class="token punctuation">,</span> 
          <span class="token punctuation">{</span> value<span class="token punctuation">:</span> <span class="token string">'wh'</span><span class="token punctuation">,</span> label<span class="token punctuation">:</span> <span class="token string">'武汉'</span> <span class="token punctuation">}</span><span class="token punctuation">,</span> 
          <span class="token punctuation">{</span> value<span class="token punctuation">:</span> <span class="token string">'sh'</span><span class="token punctuation">,</span> label<span class="token punctuation">:</span> <span class="token string">'上海'</span> <span class="token punctuation">}</span>
        <span class="token punctuation">]</span><span class="token punctuation">,</span>
        <span class="token comment">// 若data为空，则通过http请求获取远程数据字典</span>
        <span class="token comment">// 也可以传入一个异步请求来自定义请求方式</span>
        url<span class="token punctuation">:</span><span class="token string">'/dict/get'</span><span class="token punctuation">,</span> 
        <span class="token comment">// url(dict,{form,component}){return '/dict/newUrl'} // 如果url是一个方法，则表示是动态构建url</span>
        cache<span class="token punctuation">:</span> <span class="token boolean">true</span><span class="token punctuation">,</span> <span class="token comment">//是否启用cache，默认开启</span>
        value<span class="token punctuation">:</span><span class="token string">'value'</span><span class="token punctuation">,</span> <span class="token comment">// value的属性名</span>
        label<span class="token punctuation">:</span><span class="token string">'label'</span><span class="token punctuation">,</span> <span class="token comment">// label的属性名</span>
        children<span class="token punctuation">:</span><span class="token string">'children'</span><span class="token punctuation">,</span> <span class="token comment">// children的属性名</span>
        isTree<span class="token punctuation">:</span> <span class="token boolean">false</span><span class="token punctuation">,</span> <span class="token comment">//是否是树形结构</span>
        <span class="token function-variable function">getData</span><span class="token punctuation">:</span> <span class="token punctuation">(</span><span class="token parameter">url<span class="token punctuation">,</span>dict<span class="token punctuation">,</span><span class="token punctuation">{</span>form<span class="token punctuation">,</span>component<span class="token punctuation">}</span></span><span class="token punctuation">)</span><span class="token operator">=&gt;</span><span class="token punctuation">{</span><span class="token keyword">return</span> Promise<span class="token punctuation">}</span> <span class="token comment">//  覆盖全局getRemoteDictData方法,返回 Promise&lt;[dictData]&gt;</span>
      <span class="token punctuation">}</span><span class="token punctuation">,</span>
      <span class="token comment">//行内单元格显示组件</span>
      component<span class="token punctuation">:</span><span class="token punctuation">{</span> name<span class="token punctuation">:</span><span class="token string">'dict-select'</span><span class="token punctuation">,</span> props<span class="token punctuation">:</span><span class="token punctuation">{</span><span class="token operator">...</span><span class="token punctuation">}</span><span class="token punctuation">}</span><span class="token punctuation">,</span>
      <span class="token comment">//是否隐藏该列在列表中显示，不影响form表单中该字段的显示</span>
      disabled<span class="token punctuation">:</span> <span class="token boolean">false</span><span class="token punctuation">,</span> 
      show<span class="token punctuation">:</span> <span class="token boolean">true</span><span class="token punctuation">,</span> <span class="token comment">//是否显示单元格内容</span>
      <span class="token comment">// 是否启用该cell的slot插槽,需要d2-crud-x才支持</span>
      <span class="token comment">// 见 http://qiniu.veryreader.com/D2CrudPlusExample/#/demo/form/slot</span>
      rowSlot<span class="token punctuation">:</span> <span class="token boolean">false</span><span class="token punctuation">,</span> 
      
      <span class="token function">formatter</span> <span class="token punctuation">(</span><span class="token parameter">row<span class="token punctuation">,</span> column<span class="token punctuation">,</span> value<span class="token punctuation">,</span> index</span><span class="token punctuation">)</span> <span class="token punctuation">{</span>
        <span class="token comment">// cell 格式化，与d2-crud一致</span>
      <span class="token punctuation">}</span>
    <span class="token punctuation">}</span>
  <span class="token punctuation">]</span><span class="token punctuation">,</span>
  <span class="token comment">// 下方的配置都是可选的</span>
  viewOptions<span class="token punctuation">:</span><span class="token punctuation">{</span>
    disabled<span class="token punctuation">:</span> <span class="token boolean">false</span><span class="token punctuation">,</span> <span class="token comment">// 开启view</span>
    componentType<span class="token punctuation">:</span> <span class="token string">'form'</span><span class="token punctuation">,</span> <span class="token comment">// 查看时使用哪种组件展示【form=使用表单组件,row=使用行展示组件】</span>
    <span class="token function-variable function">defaultRender</span><span class="token punctuation">:</span><span class="token punctuation">(</span><span class="token parameter">h<span class="token punctuation">,</span>scope</span><span class="token punctuation">)</span><span class="token operator">=&gt;</span><span class="token punctuation">{</span><span class="token keyword">return</span> <span class="token punctuation">(</span><span class="token operator">&lt;</span>span<span class="token operator">&gt;</span><span class="token punctuation">{</span>scope<span class="token punctuation">.</span>value<span class="token punctuation">}</span><span class="token operator">&lt;</span><span class="token operator">/</span>span<span class="token operator">&gt;</span><span class="token punctuation">)</span><span class="token punctuation">}</span> <span class="token comment">//没有配置组件的，默认渲染render</span>
  <span class="token punctuation">}</span><span class="token punctuation">,</span>
  pageOptions<span class="token punctuation">:</span><span class="token punctuation">{</span>
    compact<span class="token punctuation">:</span> <span class="token boolean">false</span> <span class="token comment">//是否紧凑页面模式</span>
  <span class="token punctuation">}</span><span class="token punctuation">,</span>
  formOptions<span class="token punctuation">:</span> <span class="token punctuation">{</span> <span class="token comment">// 编辑对话框及el-form的配置</span>
    labelWidth<span class="token punctuation">:</span> <span class="token string">'100px'</span><span class="token punctuation">,</span>
    labelPosition<span class="token punctuation">:</span> <span class="token string">'left'</span><span class="token punctuation">,</span>
    saveLoading<span class="token punctuation">:</span> <span class="token boolean">false</span><span class="token punctuation">,</span>
    gutter<span class="token punctuation">:</span> <span class="token number">20</span><span class="token punctuation">,</span>
    defaultSpan<span class="token punctuation">:</span> <span class="token number">12</span><span class="token punctuation">,</span> <span class="token comment">// 默认表单字段所占宽度</span>
    draggable<span class="token punctuation">:</span><span class="token boolean">true</span><span class="token punctuation">,</span> <span class="token comment">//是否支持表单对话框拖拽</span>
    updateTableDataAfterEdit<span class="token punctuation">:</span> <span class="token boolean">false</span> <span class="token comment">// 添加和删除提交后，是否直接更新本地table的数据</span>
  <span class="token punctuation">}</span><span class="token punctuation">,</span>
  searchOptions<span class="token punctuation">:</span> <span class="token punctuation">{</span> <span class="token comment">//查询配置参数</span>
    form<span class="token punctuation">:</span><span class="token punctuation">{</span> <span class="token comment">//默认搜索参数</span>
      name<span class="token punctuation">:</span><span class="token string">'小明'</span> <span class="token comment">// 请求列表默认会带上此处配置参数</span>
    <span class="token punctuation">}</span><span class="token punctuation">,</span>
    show<span class="token punctuation">:</span> <span class="token boolean">true</span><span class="token punctuation">,</span><span class="token comment">//是否显示搜索工具条</span>
    disabled<span class="token punctuation">:</span> <span class="token boolean">false</span><span class="token punctuation">,</span> <span class="token comment">//是否禁用搜索工具条</span>
    debounce<span class="token punctuation">:</span><span class="token punctuation">{</span> <span class="token comment">//自动查询防抖,debounce:false关闭自动查询</span>
      wait<span class="token punctuation">:</span> <span class="token number">500</span><span class="token punctuation">,</span> <span class="token comment">//延迟500毫秒</span>
      <span class="token operator">...</span> <span class="token comment">//options : https://www.lodashjs.com/docs/lodash.debounce</span>
    <span class="token punctuation">}</span>   
  <span class="token punctuation">}</span><span class="token punctuation">,</span>
  options<span class="token punctuation">:</span> <span class="token punctuation">{</span> <span class="token comment">// d2-crud及el-table的配置参数</span>
    stripe<span class="token punctuation">:</span> <span class="token boolean">true</span><span class="token punctuation">,</span>
    border<span class="token punctuation">:</span> <span class="token boolean">true</span><span class="token punctuation">,</span>
    highlightCurrentRow<span class="token punctuation">:</span> <span class="token boolean">false</span><span class="token punctuation">,</span> <span class="token comment">//是否高亮选中行</span>
    size<span class="token punctuation">:</span> <span class="token string">'mini'</span>
  <span class="token punctuation">}</span><span class="token punctuation">,</span>
  pagination<span class="token punctuation">:</span> <span class="token punctuation">{</span> <span class="token comment">//翻页配置,更多配置参考el-pagination</span>
    currentPage<span class="token punctuation">:</span> <span class="token number">1</span><span class="token punctuation">,</span>
    pageSize<span class="token punctuation">:</span> <span class="token number">20</span><span class="token punctuation">,</span>
    total<span class="token punctuation">:</span> <span class="token number">1</span><span class="token punctuation">,</span>
    storage<span class="token punctuation">:</span><span class="token boolean">true</span> <span class="token comment">//本地保存用户每页条数修改，刷新不会丢失该修改，false=关闭</span>
    <span class="token comment">// storage:'keysuffix'// 传入字符串，将会给保存的key增加一个后缀，用于区分同一个页面下多个crud</span>
  <span class="token punctuation">}</span><span class="token punctuation">,</span>
  rowHandle<span class="token punctuation">:</span> <span class="token punctuation">{</span> 
    <span class="token comment">//行操作栏，与d2-crud一致，默认配置有修改与删除</span>
    view<span class="token punctuation">:</span><span class="token punctuation">{</span><span class="token comment">//查看按钮</span>
        thin<span class="token punctuation">:</span> <span class="token boolean">false</span><span class="token punctuation">,</span> <span class="token comment">//瘦模式，thin=true 且 text=null 可以设置方形按钮节省位置 </span>
        text<span class="token punctuation">:</span> <span class="token string">'查看'</span><span class="token punctuation">,</span> <span class="token comment">//按钮文字， 传null 取消文字</span>
        type<span class="token punctuation">:</span> <span class="token string">'warning'</span><span class="token punctuation">,</span> <span class="token comment">// 按钮类型</span>
        icon<span class="token punctuation">:</span><span class="token string">'el-view'</span><span class="token punctuation">,</span> <span class="token comment">//按钮图标</span>
        size<span class="token punctuation">:</span> <span class="token string">'small'</span><span class="token punctuation">,</span> <span class="token comment">// 按钮大小</span>
        circle<span class="token punctuation">:</span> <span class="token boolean">false</span><span class="token punctuation">,</span><span class="token comment">//圆形按钮 ，需要thin=true,且text=true</span>
        show<span class="token punctuation">:</span><span class="token boolean">true</span><span class="token punctuation">,</span> <span class="token comment">// 是否显示按钮</span>
        <span class="token comment">//show(index,row){return true}// 还可以配置为方法 </span>
        disabled<span class="token punctuation">:</span><span class="token boolean">false</span><span class="token comment">// 是否禁用</span>
        <span class="token comment">//disabled(index,row){return true} //还可以配置为方法 </span>
    <span class="token punctuation">}</span><span class="token punctuation">,</span> 
    edit<span class="token punctuation">:</span><span class="token punctuation">{</span><span class="token punctuation">}</span><span class="token punctuation">,</span> <span class="token comment">//编辑按钮,配置同上</span>
    remove<span class="token punctuation">:</span><span class="token punctuation">{</span><span class="token punctuation">}</span><span class="token punctuation">,</span> <span class="token comment">//删除按钮,配置同上</span>
    custom<span class="token punctuation">:</span><span class="token punctuation">[</span><span class="token comment">//自定义按钮</span>
      <span class="token punctuation">{</span>
         <span class="token comment">//配置同上</span>
         <span class="token comment">//点击事件,需要在&lt;d2-crud-x @custom-emit=&quot;yourHandle&quot;/&gt;</span>
         emit<span class="token punctuation">:</span> <span class="token string">'custom-emit'</span> 
      <span class="token punctuation">}</span>
    <span class="token punctuation">]</span> 
  <span class="token punctuation">}</span><span class="token punctuation">,</span>
  formGroup<span class="token punctuation">:</span> <span class="token punctuation">{</span>  <span class="token comment">//表单分组</span>
    type<span class="token punctuation">:</span> <span class="token string">'collapse'</span><span class="token punctuation">,</span> <span class="token comment">// tab暂未实现</span>
    accordion<span class="token punctuation">:</span> <span class="token boolean">false</span><span class="token punctuation">,</span>
    groups<span class="token punctuation">:</span> <span class="token punctuation">{</span> <span class="token comment">//分组</span>
      base<span class="token punctuation">:</span> <span class="token punctuation">{</span> <span class="token comment">//分组key</span>
        title<span class="token punctuation">:</span> <span class="token string">'商品基础'</span><span class="token punctuation">,</span> <span class="token comment">//分组标题</span>
        disabled<span class="token punctuation">:</span><span class="token boolean">false</span><span class="token punctuation">,</span> <span class="token comment">//禁止展开或收起</span>
        <span class="token comment">// disabled(context){return true} //可以传一个方法</span>
        show<span class="token punctuation">:</span> <span class="token boolean">true</span><span class="token punctuation">,</span><span class="token comment">//是否显示</span>
        <span class="token comment">// show(context){return true} //可以传一个方法</span>
        icon<span class="token punctuation">:</span> <span class="token string">'el-icon-goods'</span><span class="token punctuation">,</span> <span class="token comment">//分组标题前的图标</span>
        columns<span class="token punctuation">:</span> <span class="token punctuation">[</span><span class="token string">'title'</span><span class="token punctuation">,</span> <span class="token string">'code'</span><span class="token punctuation">,</span> <span class="token string">'images'</span><span class="token punctuation">]</span> <span class="token comment">//该组内包含的字段列表</span>
      <span class="token punctuation">}</span>
    <span class="token punctuation">}</span>
  <span class="token punctuation">}</span><span class="token punctuation">,</span>
  format<span class="token punctuation">:</span> <span class="token punctuation">{</span>
    <span class="token comment">//是否需要拍平数据，当返回数据中有嵌套对象时使用</span>
    <span class="token comment">//dataRow = {user:{gender:0,name:'greper'}}</span>
    <span class="token comment">//columns:[{key:'user#gender'},{key:'user#name'}] //key的配置需要用#号连接</span>
    flatData<span class="token punctuation">:</span><span class="token boolean">false</span><span class="token punctuation">,</span> 
    page<span class="token punctuation">:</span> <span class="token punctuation">{</span> <span class="token comment">// page接口返回的数据结构配置，</span>
      request<span class="token punctuation">:</span> <span class="token punctuation">{</span> <span class="token comment">// 请求参数</span>
        current<span class="token punctuation">:</span> <span class="token string">'current'</span><span class="token punctuation">,</span> <span class="token comment">//当前页码</span>
        size<span class="token punctuation">:</span> <span class="token string">'size'</span> <span class="token comment">//当前每页条数</span>
        <span class="token comment">// size(page,size){page[xxx]=size}//你还可以配置为一个方法，自定义操作请求参数</span>
      <span class="token punctuation">}</span><span class="token punctuation">,</span>
      response<span class="token punctuation">:</span> <span class="token punctuation">{</span> <span class="token comment">//返回结果</span>
        current<span class="token punctuation">:</span> <span class="token string">'current'</span><span class="token punctuation">,</span> <span class="token comment">// 当前页码 ret.data.current</span>
        size<span class="token punctuation">:</span> <span class="token string">'size'</span><span class="token punctuation">,</span> <span class="token comment">// 每页条数，ret.data.size, </span>
        <span class="token comment">//size: (data) =&gt; { return data.size }, //你也可以配置一个方法，自定义返回</span>
        total<span class="token punctuation">:</span> <span class="token string">'total'</span><span class="token punctuation">,</span> <span class="token comment">// 总记录数 ret.data.total</span>
        records<span class="token punctuation">:</span> <span class="token string">'records'</span> <span class="token comment">// 列表数组 ret.data.records</span>
      <span class="token punctuation">}</span>
    <span class="token punctuation">}</span>
  <span class="token punctuation">}</span><span class="token punctuation">,</span>
  addTemplate<span class="token punctuation">:</span> <span class="token punctuation">{</span><span class="token punctuation">}</span><span class="token punctuation">,</span> <span class="token comment">//根据form配置自动生成,请不要配置</span>
  editTemplate<span class="token punctuation">:</span> <span class="token punctuation">{</span><span class="token punctuation">}</span><span class="token punctuation">,</span> <span class="token comment">//根据form配置自动生成,请不要配置</span>
  addRules<span class="token punctuation">:</span> <span class="token punctuation">{</span><span class="token punctuation">}</span><span class="token punctuation">,</span> <span class="token comment">//根据form配置自动生成,请不要配置</span>
  editRules<span class="token punctuation">:</span> <span class="token punctuation">{</span><span class="token punctuation">}</span><span class="token punctuation">,</span><span class="token comment">//根据form配置自动生成,请不要配置</span>
  list<span class="token punctuation">:</span> <span class="token punctuation">[</span><span class="token punctuation">]</span><span class="token punctuation">,</span> <span class="token comment">//数据列表，跟pageRequest从后端获取数据</span>
  loading<span class="token punctuation">:</span> <span class="token boolean">false</span> <span class="token comment">//当前是否正在loading,请不要配置</span>
<span class="token punctuation">}</span>

</code></pre></div></div> <footer class="page-edit"><div class="edit-link"><a href="https://github.com/greper/d2-crud-plus/edit/master//docs/guide/options.md" target="_blank" rel="noopener noreferrer">在 GitHub 上编辑此页</a> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></div> <div class="last-updated"><span class="prefix">上次更新:</span> <span class="time">2020-8-6 6:20:34 PM</span></div></footer> <div class="page-nav"><p class="inner"><span class="prev">
      ←
      <a href="/d2-crud-plus/guide/mixins.html" class="prev">
        d2CrudPlus.crud
      </a></span> <span class="next"><a href="/d2-crud-plus/guide/structure.html">
        数据结构
      </a>
      →
    </span></p></div> </main></div><div class="global-ui"></div></div>
    <script src="/d2-crud-plus/assets/js/app.9c9ff646.js" defer></script><script src="/d2-crud-plus/assets/js/2.9f3ba775.js" defer></script><script src="/d2-crud-plus/assets/js/62.8e56567e.js" defer></script>
  </body>
</html>
